package com.example.telesys.service.fallback;

import com.example.telesys.pojo.Customerorder;
import com.example.telesys.service.CustomerorderService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * 这个是Customer服务调用Customerorder服务过程中 出现异常的备用方案
 */
@Service
public class CustomerorderServiceFallback implements CustomerorderService {

    @Override
    public int insertPhoneOrder(Customerorder customerorder) {
        return 0;
    }

    @Override
    public PageInfo selectMyOrders(String username, Integer currentPageNumber, Integer currentPageSize) {
        PageInfo pageInfo = new PageInfo();
        pageInfo.setList(new ArrayList());
        return pageInfo;
    }

    @Override
    public int insertBroadbandOrder(Customerorder order) {
        return 0;
    }

    @Override
    public int insertTrafficOrder(Customerorder order) {
        return 0;
    }
}
